{include file="header.html"}
<script type="text/javascript">
    $(function(){
        $('#add_time_from').datepicker({dateFormat: 'yy-mm-dd'});
        $('#add_time_to').datepicker({dateFormat: 'yy-mm-dd'});
    });
</script>
<div id="rightTop">
    <p>活动管理</p>
    <ul class="subnav">
        <li><span>{$lang.manage}</span></li>
        <li><a class="btn1" href="index.php?app=wish_activity&amp;act=add">{$lang.add}</a></li>
    </ul>
</div>
<div class="mrightTop" style="height: 80px;">
    <div class="fontl">
        <form method="get">
                <input type="hidden" name="app" value="wish_activity" />
                <input type="hidden" name="act" value="index" />
                <!--关键字:<input class="queryInput" type="text" name="search_name" value="{$query.search_name|escape}" />-->
                <select class="querySelect" name="type">
                    <option value="">状态</option>
                    {html_options options=$wish_type_list selected=$query.type}
                </select>
                周期时间:<input class="queryInput" type="text" value="{$query.add_time_from}" id="add_time_from" name="add_time_from" class="pick_date" />
                至:<input class="queryInput" type="text" value="{$query.add_time_to}" id="add_time_to" name="add_time_to" class="pick_date" />

                <input type="submit" class="formbtn" value="{$lang.query}" onclick="$('[name=act]').val('index');"/>
                <!--{if $filtered}-->
                <a class="formbtn1" href="index.php?app=wish_activity">{$lang.cancel_query}</a>
                <!--{/if}-->
        </form>
    </div>
    <div class="fontr">
        {if $res}{include file=page.top.html}{/if}
    </div>
</div>
<div class="tdare">
    <table width="100%" cellspacing="0" class="dataTable">
        <!--{if $res}-->
        <tr class="tatr1">
            <td>ID</td>
            <td width="10%"><span>备注</span></td>
            <td width="25%"><span>开始时间</span></td>
            <td width="25%"><span>结束时间</span></td>
            <td><span>类型</span></td>
            <td width="25%">{$lang.handler}</td>
        </tr>
        <!--{/if}-->
        <!--{foreach from=$res item=order}-->
        <tr class="tatr2">
            <td>{$order.activity_id}</td>
            <td>{$order.remark}</td>
            <td>{$order.start_time|date:complete}</td>
            <td>{$order.end_time|date:complete}</td>
            <td>{$order.type_value}</td>
            <td>
                <a  href="index.php?app=wish_activity&amp;act=edit&amp;activity_id={$order.activity_id}">编辑</a>    |
                <a href="javascript:drop_confirm('{$lang.drop_confirm}', 'index.php?app=wish_activity&amp;act=drop&amp;activity_id={$order.activity_id}');">{$lang.drop}</a>
            </td>
        </tr>
        <!--{foreachelse}-->
        <tr class="no_data">
            <td colspan="7">{$lang.no_data}</td>
        </tr>
        <!--{/foreach}-->
    </table>
    <div id="dataFuncs">
        <div class="pageLinks">
            {if $res}{include file=page.bottom.html}{/if}
        </div>
    </div>
    <div class="clear"></div>
</div>
{include file="footer.html"}
